home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / news / inn-faq / diff3 < prev    next >
Internet Message Format  |  1994-04-05  |  19KB

  1. Path: bloom-beacon.mit.edu!hookup!swrinde!cs.utexas.edu!uunet!news.mentorg.com!sdl!not-for-mail
  2. From: tal@Warren.MENTORG.COM (Tom Limoncelli)
  3. Newsgroups: news.software.nntp,news.software.b,news.answers
  4. Subject: Changes to INN FAQ Part 3/4: Operational and Misc. Questions
  5. Supersedes: <inn-faq-changes-3-765518416@Warren.MENTORG.COM>
  6. Followup-To: news.software.nntp
  7. Date: 5 Apr 1994 11:37:14 -0400
  8. Organization: Mentor Graphics - IC Group, Warren, NJ, USA
  9. Lines: 508
  10. Sender: tal@Warren.MENTORG.COM
  11. Approved: news-answers-request@MIT.Edu
  12. Distribution: world
  13. Expires: 04/20/94
  14. Message-ID: <inn-faq-changes-3-764139608@Warren.MENTORG.COM>
  15. References: <inn-faq-changes-2-764139608@Warren.MENTORG.COM>
  16. Reply-To: Tom_Limoncelli@Warren.MENTORG.COM (Tom Limoncelli)
  17. NNTP-Posting-Host: sdl.warren.mentorg.com
  18. Xref: bloom-beacon.mit.edu news.software.nntp:5495 news.software.b:4177 news.answers:17712
  19.  
  20. Posted-By: auto-faq 2.4
  21. Archive-name: inn-faq/diff3
  22.  
  23. No differences encountered
  24. -- 
  25. Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
  26. "Psst!  Hey, Anthony!  Y'know what I        | Disclaimer:  I do not
  27. like about existing?"  "Uh... uh... what?"  | speak for Mentor Graphics.
  28. "Possessing a physical extension."  -TSA    |
  29.  
  30. *** 1.48    1994/01/17 14:30:24
  31. --- FAQ-inn.3    1994/03/31 21:14:54
  32. ***************
  33. *** 1,4 ****
  34. ! Last Changed: $Id: FAQ-inn.3,v 1.48 1994/01/17 14:30:24 tal Exp $
  35.   
  36.                     Part 3 of 4
  37.    
  38. --- 1,4 ----
  39. ! Last Changed: $Id: FAQ-inn.3,v 1.61 1994/03/15 20:09:03 tal Exp $
  40.   
  41.                     Part 3 of 4
  42.    
  43. ***************
  44. *** 32,37 ****
  45. --- 32,39 ----
  46.       Suddenly my active and history files are owned by root!
  47.       How come my host name comes out twice in the Path line?
  48.       Expire had problems last night, and while I fixed the problem,
  49. +     expire reports "Group not matched (removed?) --
  50. +         Using default expiration"
  51.       Why doesn't this newsfeeds entry do what I want?
  52.       Why am I forwarding cancel messages for articles in comp.foo
  53.       Debugging someone that is feeding you.
  54. ***************
  55. *** 42,55 ****
  56.       Directories are being created with wrong permissions.
  57.       Why am I getting alt.sex.pictures even though I have
  58.       More about the "to.*" groups
  59.   HOW DO I... (Big changes you can make to the system):
  60.       How do I set up a delayed IHAVE/SENDME over NNTP?
  61.       Can I use gzip with INN?
  62.       What do I do if /var/spool/news is set up over many partitions?
  63.   BUGS IN 1.4:
  64. !     (this section currently empty)
  65.   BUGS IN 1.3:
  66.       7-bit encoded batches are not correctly processed. Why is this?
  67.   BUGS IN 1.2:
  68.       Why doesn't nntpget work?
  69.   
  70. --- 44,65 ----
  71.       Directories are being created with wrong permissions.
  72.       Why am I getting alt.sex.pictures even though I have
  73.       More about the "to.*" groups
  74. +     What's a decent syslog.conf configuration?
  75. +     INN batcher writing "#!rnews 0" separators
  76. +     Posting while throttled doesn't work
  77. +     "innd: overview! spooling" and the file "overview!" in /usr/spool/news/out.going
  78. +     "newgroup" control messages aren't being executed
  79.   HOW DO I... (Big changes you can make to the system):
  80.       How do I set up a delayed IHAVE/SENDME over NNTP?
  81.       Can I use gzip with INN?
  82.       What do I do if /var/spool/news is set up over many partitions?
  83. +     archiving expired articles
  84.   BUGS IN 1.4:
  85. !     Security Patch
  86. !     Looping Select Patch
  87.   BUGS IN 1.3:
  88.       7-bit encoded batches are not correctly processed. Why is this?
  89. +     NOV (overchan) doesn't work well.
  90.   BUGS IN 1.2:
  91.       Why doesn't nntpget work?
  92.   
  93. ***************
  94. *** 74,79 ****
  95. --- 84,93 ----
  96.   
  97.   Subject:  Safe way to edit the "active" file?
  98.   
  99. + First of all, you could manipulate the active file using the ctlinnd
  100. + "newgroup", "rmgroup" and "changegroup" commands.  However, sometimes
  101. + you just need to do a lot of editing all at once:
  102.   The following sequence is the shortest:
  103.   
  104.       ctlinnd pause "edit active"
  105. ***************
  106. *** 81,87 ****
  107.   ctlinnd reload active "edit active"
  108.   ctlinnd go "edit active"
  109.   
  110. ! Simple!  No need to "flush", the "pause" does that.
  111.   
  112.   
  113.   ------------------------------
  114. --- 95,142 ----
  115.       ctlinnd reload active "edit active"
  116.       ctlinnd go "edit active"
  117.   
  118. ! Simple!  No need to "flush" since the "pause" does that.
  119. ! > What if I need to delete 3000 lines from my active file?
  120. ! I would definately edit the active file manually (using
  121. ! the above procedure).
  122. ! > What if I need to delete 10 lines from my active file?
  123. ! For a couple quick changes, I recommend using "ctlinnd".  This is a
  124. ! little slow because all channels are closed and reopened after each
  125. ! "rmgroup", "newgroup", and "changegroup".  However, it's easier than
  126. ! remembering the above sequence.
  127. ! DO NOT THROTTLE THE SERVER WHEN DOING MULTIPLE rmgroup COMMANDS.  There
  128. ! is a bug in INN (all versions) that will shred your active file if you
  129. ! do multiple "rmgroup" messages while the server if throttled.  This is
  130. ! a common mistake.  People think the "rmgroup"'s will go faster if the
  131. ! server is throttled.  It will go faster, it will also shred your active
  132. ! file.
  133. ! If you have a large number of groups to remove or create, you can use
  134. ! awk to write a script to do the work for you.
  135. !     % cat thelist
  136. !     alt.foo.bar
  137. !     alt.delete.me
  138. !     comp.sys.mac
  139. !     % awk <thelist '{ print "ctlinnd rmgroup " $1 }'
  140. !     ctlinnd rmgroup alt.foo.bar
  141. !     ctlinnd rmgroup alt.delete.me
  142. !     ctlinnd rmgroup comp.sys.mac
  143. ! Now, you can either send the output of that to "| sh -x",
  144. ! or you can redirect the output to a file, and "source" the
  145. ! file.
  146. ! If you want to create a bunch of newsgroups, the awk
  147. ! command might be like this:
  148. !     % awk <thelist \
  149. !     '{ print "ctlinnd newgroup " $1 " y user@host" }' | sh -x
  150.   
  151.   
  152.   ------------------------------
  153. ***************
  154. *** 132,139 ****
  155.   
  156.   STEP 6: When you feel you are ready to install the new $INN/site files:
  157.   
  158. !     % cd $INN/site
  159. !     % make install
  160.   
  161.   STEP 7: Re-start the system:
  162.   
  163. --- 187,194 ----
  164.   
  165.   STEP 6: When you feel you are ready to install the new $INN/site files:
  166.   
  167. !     # cd $INN/site
  168. !     # make install
  169.   
  170.   STEP 7: Re-start the system:
  171.   
  172. ***************
  173. *** 140,146 ****
  174.       % sh /usr/lib/news/etc/rc.news
  175.   
  176.   STEP 8: If everything was done right you should be up and running.
  177. ! Part ??? of the FAQ gives tips on testing your configuration.
  178.   
  179.   
  180.   ------------------------------
  181. --- 195,201 ----
  182.       % sh /usr/lib/news/etc/rc.news
  183.   
  184.   STEP 8: If everything was done right you should be up and running.
  185. ! Part 2 of the FAQ gives tips on testing your configuration.
  186.   
  187.   
  188.   ------------------------------
  189. ***************
  190. *** 211,218 ****
  191.   
  192.   ------------------------------
  193.   
  194. ! Subject:  Expire had problems last night, and while I fixed the problem,
  195. !       it still won't run.
  196.   
  197.   When expire starts up it "reserves" the server so that nobody else can
  198.   pause or throttle it.  This prevents anyone else from coming in and
  199. --- 266,273 ----
  200.   
  201.   ------------------------------
  202.   
  203. ! Subject:  Expire had problems last night, and while I fixed the
  204. !             problem, it still won't run.
  205.   
  206.   When expire starts up it "reserves" the server so that nobody else can
  207.   pause or throttle it.  This prevents anyone else from coming in and
  208. ***************
  209. *** 225,230 ****
  210. --- 280,300 ----
  211.   
  212.   ------------------------------
  213.   
  214. + Subject: expire reports "Group not matched (removed?) --
  215. +         Using default expiration"
  216. + Expire says:
  217. + Group not matched (removed?) alt.techno-shamanism -- Using default expiration
  218. + Group not matched (removed?) misc.computers.forsale -- Using default expiration
  219. + Group not matched (removed?) de.rec.sf.startrek -- Using default expiration
  220. + That just means that you've removed those newsgroups groups and expire
  221. + is slowly removing articles from the spool as they expire.  Eventually
  222. + the articles will all have been deleted and so will these messages.
  223. + ------------------------------
  224.   Subject:  Why doesn't this newsfeeds entry do what I want?
  225.               "foo.com:alt,!alt.sex"
  226.   
  227. ***************
  228. *** 369,377 ****
  229.        it.  If a control message is posted to a  group  whose  name
  230.        ends  with  the  four characters ``.ctl'' then the suffix is
  231.        stripped off and what is left is used  as  the  group  name.
  232. !      For  example,  a cancel message posted to ``news.admin.ctl''
  233.        will be sent to all sites that subscribe to  ``control''  or
  234. !      ``news.admin.''
  235.   
  236.   There is also a pointer to this in newsfeeds(5).
  237.   
  238. --- 439,447 ----
  239.       it.  If a control message is posted to a  group  whose  name
  240.       ends  with  the  four characters ``.ctl'' then the suffix is
  241.       stripped off and what is left is used  as  the  group  name.
  242. !     For  example,  a cancel message posted to ``news.admin.misc.ctl''
  243.       will be sent to all sites that subscribe to  ``control''  or
  244. !     ``news.admin.misc''.
  245.   
  246.   There is also a pointer to this in newsfeeds(5).
  247.   
  248. ***************
  249. *** 380,385 ****
  250. --- 450,593 ----
  251.   Yes.
  252.   
  253.   
  254. + ------------------------------
  255. + Subject:  What's a decent syslog.conf configuration?
  256. + The configuration will be different for each site, but here is what
  257. + Greg Earle recommends as the lines for the "news.*" related part.
  258. + Remember that most syslog's require tabs, not spaces.
  259. + Greg's canonical SunOS 4.1.x INN-related syslog.conf entries (which can
  260. + be merged into your current configuration):
  261. + #
  262. + # INN stuff
  263. + #
  264. + ##  Send critical messages to everyone who is logged in and to the console.
  265. + news.crit               *
  266. + news.crit               /dev/console
  267. + ##  Log news messages to separate files.
  268. + ##  Note that each level includes all of the above it.
  269. + ## =()<news.crit        @<_PATH_MOST_LOGS>@/news.crit>()=
  270. + news.crit               /var/log/news/news.crit
  271. + ## =()<news.err         @<_PATH_MOST_LOGS>@/news.err>()=
  272. + news.err                /var/log/news/news.err
  273. + ## =()<news.notice      @<_PATH_MOST_LOGS>@/news.notice>()=
  274. + news.notice             /var/log/news/news.notice
  275. + ------------------------------
  276. + Subject:  INN batcher writing "#!rnews 0" separators
  277. + >Outgoing UUCP batches from here are going out with "#!rnews 0" at
  278. + >the head of each article.
  279. +  
  280. + Most common cause:  your newsfeeds entry has "Wnm" not "Wnb".
  281. + Other reasons:
  282. + batchfiles have something other than a single space between article
  283. + filename and size
  284. + batchfiles lack size information (all the articles sizes will be read
  285. + from the batch file as zero)
  286. + ------------------------------
  287. + Subject:  Posting while throttled doesn't work
  288. + >I want to be able to allow my users to be able to post articles when
  289. + >innwatch has throttled the system when the spool disk is "full".
  290. + Cannot be done in 1.4.
  291. + At a minimum, in 1.5 nnrpd will spool the post for the user.
  292. + ------------------------------
  293. + Subject:  "innd: overview! spooling" and the file "overview!" in /usr/spool/news/out.going
  294. + > About once a month or so, I get the following warning messages:
  295. + > 
  296. + > Jan 20 07:20:22 optima innd: overview!:31:proc:9193 cant flush count 14639 Operation would block
  297. + > Jan 20 07:20:22 optima innd: overview! spooling 14639 bytes
  298. + > 
  299. + > And there's a file "overview!" in /usr/spool/news/out.going with stuff in it.
  300. + > 
  301. + > Should I be doing anything more with this than ignoring it, and maybe
  302. + > occasionally deleting it (it just grows)?
  303. + This happens because innd is feeding info to overchan faster than
  304. + overchan can process it.  The overflow is sent to the file
  305. + "overview!".  This file can be deleted, as nnrpd will grab the missing
  306. + data out of the articles "manually".  The slow-down won't be noticed.
  307. + However, you can "expireover -a" to "fill in the holes".
  308. + To prevent this in the future, you need to make overchan run faster.
  309. + This is easy to do.  I found that moving the overview files into
  310. + /usr/spool/news/over.view made things fast enough that the problem went
  311. + away.  Change "_PATH_OVERVIEWDIR" in config.data, recompile, and you're
  312. + done.  (You will need to recompile any newsreaders that read via NFS or
  313. + off the local disk).
  314. + Why does that speed up overchan?  overchan works by opening the proper
  315. + .overview file, appending 1 line to it, then closing the file.  If you
  316. + have the .overview file in the same directory as 10000 articles then
  317. + opening the .overview file will take a huge amount of time.  The open()
  318. + call literally searches though an average 5000 (half of 10000) file
  319. + names to find ".overview".  If you move your .overview files so that
  320. + each one is in it's own directory, (say,
  321. + /usr/spool/news/over.view/{group}/{name}/.overview) then open() is
  322. + searching through 3 files ( ".", "..", and ".overview") to find 1
  323. + file.  ( O(N/2) where N=10000 vs.  N=3... and you thought those
  324. + freshman year CS classes would never be useful!)
  325. + There isn't much you can do to make the "append" and "close" steps much
  326. + faster, except maybe install a PrestoServe or similar write-cache, and
  327. + that won't help very much.
  328. + Profiling overchan (with PureSoft's Quantify product) found that the
  329. + open() (actually searching the directory to find the .overview file)
  330. + was around 80% of the execution time of overchan.  That was reduced to
  331. + 40% when I moved the .overview files to their own directory.  With the
  332. + change, overview's profiling statistics are pretty flat. (which is
  333. + good).
  334. + DO run "expireover -a" to fix the problem.
  335. + DO NOT try feeding the "overview!" file to overchan manually.
  336. +     (1) overchan doesn't do any locking and you'll have two overchan's
  337. +         running at once.
  338. +     (2) overchan only appends to the .overview files.  If you've gotten
  339. +         any articles since the "overview!" file was created (you will
  340. +         have) then you'll be appending told old entries that are out of
  341. +         order.  Your ".overview" files must be in sorted order for the
  342. +         other utilities to work right.
  343. + ------------------------------
  344. + Subject:  "newgroup" control messages aren't being executed
  345. + > "newgroup" control messages aren't be executed
  346. + The usual blame for this is _PATH_EGREP points to a grep that doesn't
  347. + understand regular expressions.  For example, GNU grep only understands
  348. + regular expressions if it is called "egrep" (i.e. not "gnuegrep" or
  349. + "egnugrep").
  350. + Make sure you have a link or symlink between egnugrep and egrep.  You
  351. + then need to modify config.data so that _PATH_EGREP is
  352. + /your/local/path/egrep and NOT /your/local/path/egnuegrep.  Then
  353. + recompile and "make install" to have the new binaries and shell
  354. + scripts installed.
  355.   =====================================================================
  356.           HOW DO I... (Big changes you can make to the system)
  357.   =====================================================================
  358. ***************
  359. *** 555,568 ****
  360.           find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
  361.   
  362.   
  363.   =====================================================================
  364.                                BUGS IN 1.4
  365.   =====================================================================
  366.   
  367. ! (this section currently empty, it will soon have the 2-3 unofficial
  368. ! patches that are sometimes needed.)
  369.   
  370.   
  371.   =====================================================================
  372.                                BUGS IN 1.3
  373.   =====================================================================
  374. --- 763,827 ----
  375.           find . -type l -print | grep '[0-9][0-9]*' | xargs -t rm
  376.   
  377.   
  378. + ------------------------------
  379. + Subject:  archiving expired articles
  380. + In <2hmomh$262@news.iastate.edu> rod@iastate.edu writes:
  381. + >What options do I have in INN for archiving local newsgroups?
  382. + See doc/archive.8.  You could also put "never:never:never" in your
  383. + expire.ctl file.
  384. + >Any help would be appreciated. Any cookbook examples would also help.
  385. + A cookbook newsfeeds entry:
  386. +     # Feed all moderated source postings to an archiver
  387. +     source-archive!:!*,*sources*,!*wanted*,!*.d\
  388. +         :Tc,Nm,Wn:/usr/local/bin/archive -f -i /usr/spool/news.archive/INDEX
  389. + ------------------------------
  390. + Subject:  How do I set up inpaths with INN?
  391. + inpaths should work just fine with INN as it ships.  However, you can
  392. + make it run faster by using the following shell script.  Edit it to
  393. + your tastes.  It replaces the long "(cd /var/spool/news ;
  394. + /usr/local/bin/gfind . -type f -print | /usr/lib/news/local/inpaths sdl
  395. + | /usr/ucb/mail admin,pathsurvey@decwrl.dec.com )" which people usually
  396. + use.
  397. + #!/bin/sh
  398. + . /home/news/innshellvars
  399. + cd ${SPOOL}
  400. + awk '(NR > 2){print $3}' < ${HISTORY} | tr . / | sort | \
  401. + inpaths `innconfval pathhost` | \
  402. + ${MAILCMD} pathsurvey@decwrl.dec.com
  403.   =====================================================================
  404.                                BUGS IN 1.4
  405.   =====================================================================
  406.   
  407. ! UNOFFICIAL patches for INN 1.4 are available via anonymous FTP at
  408. ! ftp://ftp.pop.psu.edu/pub/src/news/inn-patches/
  409. ! The file ftp://ftp.pop.psu.edu/pub/src/news/inn-patches/README describes
  410. ! each of the UNOFFICIAL patches.
  411. ! The ones that are highly recommended are:
  412.   
  413. + 1.4-to-1.4sec     -- Fixes the major security hole in INN.
  414. + 1.4sec-to-1.4sec2 -- Fixes the remaining known security hole in INN.
  415. + select-loop-bug.patch -- Under some circumstances innd can lose track
  416. + of a file descriptor and end up sitting in a select() loop.  If your
  417. + INN suddenly is using up tons of CPU time and not getting much done,
  418. + install this UNOFFICIAL patch.  Some OSs are more susecptible to this
  419. + bug.
  420.   
  421.   =====================================================================
  422.                                BUGS IN 1.3
  423.   =====================================================================
  424. ***************
  425. *** 580,585 ****
  426. --- 839,853 ----
  427.   fixed in INN 1.4.
  428.   
  429.   
  430. + ------------------------------
  431. + Subject:  NOV (overchan) doesn't work well.
  432. + Correct.  The NOV support in 1.3 didn't have all the bugs worked out.
  433. + Don't use NOV under INN 1.3.  Better yet, upgrade to 1.4sec and get all
  434. + the benefits!
  435.   =====================================================================
  436.                                BUGS IN 1.2
  437.                    (Hey, it's 1994!  Upgrade already!)
  438. ***************
  439. *** 589,595 ****
  440.   
  441.   Subject:  Why doesn't nntpget work?
  442.   
  443. ! The nntpget in INN 1.2 doesn't work.  Period.  Upgrade to the latest version
  444. ! of INN.
  445.   
  446.   
  447. --- 857,863 ----
  448.   
  449.   Subject:  Why doesn't nntpget work?
  450.   
  451. ! The nntpget in INN 1.2 doesn't work.  Period.  Upgrade to the latest
  452. ! version of INN.
  453.   
  454.   
  455.